package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_link table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_link"
 */

public abstract class BaseTJesLink  implements Serializable {

	public static String REF = "TJesLink";
	public static String PROP_ADDTIME = "Addtime";
	public static String PROP_TYPE = "Type";
	public static String PROP_ISLOGO = "Islogo";
	public static String PROP_LOGO = "Logo";
	public static String PROP_URL = "Url";
	public static String PROP_NAME = "Name";
	public static String PROP_ID = "Id";
	public static String PROP_IDX = "Idx";


	// constructors
	public BaseTJesLink () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesLink (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String type;
	private java.lang.String name;
	private java.lang.String url;
	private java.lang.Integer idx;
	private java.lang.String islogo;
	private java.lang.String logo;
	private java.util.Date addtime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: TYPE
	 */
	public java.lang.String getType () {
		return type;
	}

	/**
	 * Set the value related to the column: TYPE
	 * @param type the TYPE value
	 */
	public void setType (java.lang.String type) {
		this.type = type;
	}



	/**
	 * Return the value associated with the column: NAME
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: NAME
	 * @param name the NAME value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: URL
	 */
	public java.lang.String getUrl () {
		return url;
	}

	/**
	 * Set the value related to the column: URL
	 * @param url the URL value
	 */
	public void setUrl (java.lang.String url) {
		this.url = url;
	}



	/**
	 * Return the value associated with the column: IDX
	 */
	public java.lang.Integer getIdx () {
		return idx;
	}

	/**
	 * Set the value related to the column: IDX
	 * @param idx the IDX value
	 */
	public void setIdx (java.lang.Integer idx) {
		this.idx = idx;
	}



	/**
	 * Return the value associated with the column: ISLOGO
	 */
	public java.lang.String getIslogo () {
		return islogo;
	}

	/**
	 * Set the value related to the column: ISLOGO
	 * @param islogo the ISLOGO value
	 */
	public void setIslogo (java.lang.String islogo) {
		this.islogo = islogo;
	}



	/**
	 * Return the value associated with the column: LOGO
	 */
	public java.lang.String getLogo () {
		return logo;
	}

	/**
	 * Set the value related to the column: LOGO
	 * @param logo the LOGO value
	 */
	public void setLogo (java.lang.String logo) {
		this.logo = logo;
	}



	/**
	 * Return the value associated with the column: ADDTIME
	 */
	public java.util.Date getAddtime () {
		return addtime;
	}

	/**
	 * Set the value related to the column: ADDTIME
	 * @param addtime the ADDTIME value
	 */
	public void setAddtime (java.util.Date addtime) {
		this.addtime = addtime;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesLink)) return false;
		else {
			com.lovejes.app.domain.TJesLink tJesLink = (com.lovejes.app.domain.TJesLink) obj;
			if (null == this.getId() || null == tJesLink.getId()) return false;
			else return (this.getId().equals(tJesLink.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}